
package com.shop.cereshop.admin.dao.wallet;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.shop.cereshop.commons.domain.wallet.BuyerWallet;

import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface BuyerWalletDAO extends BaseMapper<BuyerWallet> {

    /**
     * 管理员：直接更新用户支付密码并重置错误信息
     * @param buyerUserId 用户ID
     * @param payPassword 加密后的支付密码
     * @param isSetPayPassword 是否设置支付密码
     * @param updateTime 更新时间
     * @return 影响行数
     */
    int adminUpdatePayPasswordAndResetError(@org.apache.ibatis.annotations.Param("buyerUserId") Long buyerUserId,
                                            @org.apache.ibatis.annotations.Param("payPassword") String payPassword,
                                            @org.apache.ibatis.annotations.Param("isSetPayPassword") Boolean isSetPayPassword,
                                            @org.apache.ibatis.annotations.Param("updateTime") String updateTime);
}
